package test;


import java.util.Arrays;
import java.util.Scanner;
//明明的随机数
public class topic16 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()){
            int in = scanner.nextInt();
            int[] array = new int[in];
            for (int i = 0; i < in; i++) {
                array[i] = scanner.nextInt();
            }
            Arrays.sort(array);
            System.out.println(array[0]);
            for (int i = 1; i < array.length; i++) {
                if (array[i]!=array[i-1]){
                    System.out.println(array[i]);
                }
            }
        }
    }
}
